
//
//  SampuxDocumentViewController.m
//  Sampux
//
//  Created by rzm on 16/9/29.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxDocumentViewController.h"

@interface SampuxDocumentViewController ()

@end

@implementation SampuxDocumentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationItem setHidesBackButton:YES];
    [self setupSubView];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    SampuxCustomNavController *nav = (SampuxCustomNavController *)self.navigationController;
    nav.titleStr = @"帮助中心";
}

- (void)setupSubView
{
    CGFloat font;
    if (IS_IPHONE_4_OR_LESS) {
        font = 14.;
    }else if (IS_IPHONE_5_OR_LESS)
    {
        font = 14.;
    }else if (IS_IPHONE_6)
    {
        font = 16.;
    }else
    {
        font = 17.;
    }
    
    UIImageView *backImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height)];
    backImageView = backImageView;
    [self.view addSubview:backImageView];
    backImageView.userInteractionEnabled = YES;
    backImageView.image = imageNamed(@"backImg");
    
    UIScrollView *scrollview =  [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height )];
    [backImageView addSubview:scrollview];
    scrollview.contentSize = CGSizeMake(scrollview.frame.size.width, 2355/2);
    
    UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, scrollview.contentSize.width, scrollview.contentSize.height)];
    [scrollview addSubview:imageview];
    imageview.image = imageNamed(@"docoment");
 }


- (void)wifi
{
//    if (self.nextBlock) {
//        self.nextBlock();
//    }
}
@end
